<#assign base=request.contextPath />
<#assign oneLabel="系统管理">

<#assign twoLabel="角色管理">
<#assign twoUrl=base+"/role/list">

<#if deptDO?? && (deptDO.id)!=0>
	<#assign leafLabel="编辑角色">
	<#else>
	<#assign leafLabel="新增角色">
</#if>
<!DOCTYPE html>
<html lang="en">
<head>
	<#include "/commons/headImport.ftl">
</head>
<body>
<#include "/commons/header.ftl">
<form class="form-horizontal" name="formName" method="post">
<@spring.formHiddenInput "roleDO.id"/>
<#include "/commons/hiddenField.ftl">
<div class="row">
    <div class="col-xs-12">
        <div class="form-group">
            <label class="col-sm-2 control-label no-padding-right">
				名称<span class="red">*</span>
			</label>
            <div class="col-sm-4">
            	<@spring.formInput "roleDO.name" "class='col-xs-10 col-sm-12'"/>
            </div>
            <div class="help-block col-xs-12 col-sm-reset inline red">
            	<@spring.showErrors "roleDO.name" />
            </div>
        </div>
        <div class="space-4"></div>
    
        <div class="form-group">
            <label class="col-sm-2 control-label no-padding-right" for="form-field-2">备注</label>
            <div class="col-sm-4">
               <@spring.formTextarea "roleDO.remark" 'class="form-control"'/>
            </div>
            <div class="help-block col-xs-12 col-sm-reset inline red">
            	<@spring.showErrors "roleDO.remark" />
            </div>
        </div>
    </div><!-- /.col -->
</div><!-- /.row -->
</form>
<div class="hr hr32 hr-dotted"></div>
<div class="clearfix">
    <div class="col-md-offset-2 col-md-9">
        <button class="btn btn-xs btn-info" type="button" id="save_id" 
				url="<#if roleDO??&&roleDO.id!=0>${base}/role/edit<#else>${base}/role/add</#if>">
            <i class="icon-save bigger-110"></i>保存
        </button>
        <button class="btn btn-xs return_class" type="button" url="${base}/role/list">
            <i class="icon-reply bigger-110"></i>返回
        </button>
    </div>
</div>
<#include "/commons/footer.ftl">
</body>
</html>
